home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
winontop
/
winontop.bas
< prev
next >
Wrap
BASIC Source File
|
1995-05-09
|
723b
|
25 lines
'Declarations for SetWindowPos
Global Const SWP_NOMOVE = 2
Global Const SWP_NOSIZE = 1
Global Const FLAGS = SWP_NOMOVE Or SWP_NOSIZE
Global Const HWND_TOPMOST = -1
Global Const HWND_NOTOPMOST = -2
'This API Function will put the Window (hWnd)
'on top of all others. Similar to Windows Clock
'See frmPalette's Resize event for usage
Declare Function SetWindowPos Lib "User" (ByVal h%, ByVal hb%, ByVal x%, ByVal y%, ByVal cx%, ByVal cy%, ByVal f%) As Integer
Sub EnableButtons (Enable As Variant)
Dim i%
frmPalette.cmdOpenData.Enabled = Not Enable
frmPalette.cmdCloseData.Enabled = Enable
For i% = 0 To 3
frmPalette.cmdDataCntrl(i%).Enabled = Enable
Next i%
End Sub